package com.hange.ymcc.web.controller;

import com.hange.ymcc.result.JSONResult;
import com.hange.ymcc.service.VerifyCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/verifycode")
public class VerifyCodeController {
    @Autowired
    private VerifyCodeService verifyCodeService;

    @RequestMapping("/sendSmsCode")
    public JSONResult SendSmsCode(String mobile)
        {
            verifyCodeService.SendSmsCode(mobile);
            return JSONResult.success();
        }
}
